/**
 * This class will display the url of the question category selected from the
 * AskWestern activity. 
 * @author Chirag Mistry
 */

package ca.uwo.android;

import ca.uwo.android.R;
import android.os.Bundle;
import android.webkit.WebView;

public class ViewWebPage  extends BaseMenuActivity {
	
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.webpage);
		
		String url = getIntent().getExtras().getString("URL"); 

		// load the url in a webview
		WebView webFrame = (WebView) findViewById(R.id.webpage_view);
		webFrame.loadUrl(url);
	}
}